import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	handle_list: apix + '/serve/handle/list',
	handle_export: apix + '/serve/handle/export',
	serve_handle: apix + '/serve/handle',
	// serve_handle: apix + '/serve/handle',
	serve_handleId: apix + '/serve/handle/',
}

//查询待办信息列表
export function handleList(obj) {
	return request.get(api.handle_list, {
		...obj
	})
}
//导出待办信息列表
export function handleExport(obj) {
	return request.post(api.handle_export, {
		...obj
	})
}
//获取待办信息详细信息
export function handleId(id) {
	return request.get(api.serve_handleId + id)
}
//新增待办信息
export function addhandle(obj) {
	return request.post(api.serve_handle, {
		...obj
	})
}
//修改待办信息
export function puthandle(obj) {
	return request.put(api.serve_handle, {
		...obj
	})
}
//删除待办信息
export function delhandle(id) {
	return request.delete(api.serve_handleId + id)
}